package main.Parallel;

public class IterationOperationJob<E> implements OperationQueueJob {
    private IterationOperation<E> op;
    private int index;
    private E val;
    
    public IterationOperationJob(IterationOperation<E> op, int index, E val) {
        this.op = op;
        this.index = index;
        this.val = val;
    }

    @Override
    public void run() {
        this.op.runIterationOperation(index, val);
        this.op.addProgress();
    }
}
